﻿<Window x:Class="_6.LinearGradientBrush.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Rectangle>
            <Rectangle.Fill>
                <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
                    <GradientStop Color="Green" Offset="0.0"></GradientStop>
                    <GradientStop Color="Pink" Offset="0.12"></GradientStop>
                    <GradientStop Color="Blue" Offset="0.25"></GradientStop>
                    <GradientStop Color="Magenta" Offset="0.37"></GradientStop>
                    <GradientStop Color="Red" Offset="0.5"></GradientStop>
                    <GradientStop Color="Brown" Offset="0.65"></GradientStop>
                    <GradientStop Color="Yellow" Offset="0.75"></GradientStop>
                    <GradientStop Color="Gray" Offset="0.87"></GradientStop>
                    <GradientStop Color="Orange" Offset="1"></GradientStop>
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
    </Grid>
</Window>
